package com.lam.system.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.lam.common.base.domain.BaseParam;
import com.lam.common.validate.group.Add;
import com.lam.common.validate.group.Select;

/**
 * 角色菜单对象 sys_role_menu
 * 
 * @author admin
 * @date 2022-09-01
 */
public class SysRoleMenuParam extends BaseParam{
	
	/** 类型(1-后端授权) */
	public static final int TYPE_ADM = 1;
	/** 类型(2-前端授权) */
	public static final int TYPE_FRONT = 2;

    /** 角色id */
	@NotBlank(message = "角色id不能为空", groups = {Add.class, Select.class})
    private String roleId;
    
    /** 权限id */
	@NotBlank(message = "权限id不能为空", groups = {Add.class})
    private String menuId;
	
	 /** 类型(1-后端授权，2-前端授权) */
	@NotNull(message = "类型不能为空", groups = {Add.class, Select.class})
    private Integer type;
    
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleId() {
        return roleId;
    }  
    
    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuId() {
        return menuId;
    }

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}  
    

}
